package com.hsh.erp.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 
 * @TableName stock
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class StockVO implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 仓库id
     */
    private Integer repositoryId;

    /**
     * 库存数量
     */
    private Integer num;

    public StockVO(Integer productId, Integer repositoryId, Integer num) {
        this.id = id;
        this.productId = productId;
        this.repositoryId = repositoryId;
        this.num = num;
    }
}